#include "head.h" 
void insert(Node *phead_F, char *str){
	Node *p = phead_F->next;
	while(p){
		Faculty *s = (Faculty*)malloc(sizeof(Faculty));
		s = (Faculty*)p->data;
		if(strcmp(str, s->name) == 0){
			Node *pnew = (Node*)malloc(sizeof(Node));
			pnew->data = intput_F();
			pnew->next = NULL;
			pnew->next = p->next;
			p->next = pnew;
			return;
		}
		p = p->next;
	}
	printf("插入失败!\n");
	return;
}
void insert_first(Node* phead_F){
	Node *pnew = (Node*)malloc(sizeof(Node));
	pnew->data = intput_F();
	pnew->next = NULL;
	pnew->next = phead_F->next;
	phead_F->next = pnew;
	return;
}
void insert_late(Node *phead_F){
	Node *p = phead_F->next;
	while(p->next){
		p = p->next;
	}
	Node *pnew = (Node*)malloc(sizeof(Node));
	pnew->data = intput_F();
	pnew->next = NULL;
	p->next = pnew;
	return;
}